import axios from 'axios';
import {ajax,base} from './config'

// 问题库
export const list = params => { return ajax.getMinData({url:`${base}api/modelController/list.do`, params}); };
export const update = params => { return ajax.postData({url:`${base}api/modelController/update.do`, params}); };
export const save = params => { return ajax.postData({url:`${base}api/modelController/save.do`, params}); };
export const del = params => { return ajax.postData({url:`${base}api/modelController/del.do`, params}); };

export const brandList = params => { return ajax.getMinData({url:`${base}api/brandController/list.do`, params}); };
export const goodsTypeList = params => { return ajax.getMinData({url:`${base}api/goodsTypeController/list.do`, params}); };
//获取已审核的型号列表
//export const list = params => { return ajax.getMinData({ url: `${base}api/modelController/getGoodModelList.do`, params }); };

export const paralist = params => { return ajax.getMinData({url:`${base}api/paraAttrController/list.do`, params}); };
export const getGoodModelList = params => { return ajax.getMinData({ url: `${base}api/modelController/getGoodModelList.do`, params }); };
